









package com.company.tguanchazhemoshi.section1;

/**
 * @author cbf4Life cbf4life@126.com
 * I'm glad to share my knowledge with you all.
 */
public class Client {
	
	public static void main(String[] args) throws InterruptedException {
		
		LiSi liSi = new LiSi();
		HanFeiZi hanFeiZi = new HanFeiZi();
		
		
		Spy watchBreakfast = new Spy(hanFeiZi,liSi,"breakfast");
		watchBreakfast.start();
		
		
		Spy watchFun = new Spy(hanFeiZi,liSi,"fun");
		watchFun.start();
		
		
		Thread.sleep(1000); 
		hanFeiZi.haveBreakfast();
		
		
		Thread.sleep(1000);
		hanFeiZi.haveFun();


		
	}
}